<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<form action="springmvc/testMethod" method="post">
		<input type="submit" value="submit" />
	</form>
	<br>
	<br>
	<a href="helloworld">Hello world</a>
	<br>
	<br>
	<a href="springmvc/testRequstMapping">Test RequestMapping</a>
	<br>
	<br>
	<a href="springmvc/testMethod">Test Method</a>
	<br>
	<br>
	<a href="springmvc/testParamsAndHeads?username=atguigu&age=10">Test Params And Heads</a>
	<br>
	<br>
	<a href="springmvc/testAntPath/sbx/abc">Test AntPath</a>
	<br>
	<br>
	<a href="springmvc/testPathVariable/1">Test PathVariable</a>
	<br>
	<br>
	<a href="springmvc/testRest/1">Test REST GET</a>
	<br>
	<br>
	<form action="springmvc/testRest" method="post">
	<input type="submit" value="TestRest POST"/>
	</form>
	<br>
	<br>
	<form action="springmvc/testRest/1" method="post">
	<input type="hidden" name="_method" value="DELETE"/>
	<input type="submit" value="TestRest DELETE"/>
	</form>
	<br>
	<br>
	<form action="springmvc/testRest/1" method="post">
	<input type="hidden" name="_method" value="PUT"/>
	<input type="submit" value="TestRest PUT"/>
	</form>
	<br>
	<br>
	<a href="springmvc/testRequestPrama?userName=atguigu&age=11">Test RequestPrama</a>
	<br>
	<br>
	<a href="springmvc/testRequestHeader">Test RequestHeader</a>
	<br>
	<br>
	<a href="springmvc/testCookieValue">Test CookieValue</a>
	<br>
	<br>
	<form action="springmvc/testPojo" method="post">
	username:<input type="text" name="username"/>
	<br>
	email:<input type="text" name="email"/>
	<br>
	age:<input type="text" name="age">
	<br>
	city:<input type="text" name="address.city">
	<br>
	province:<input type="text" name="address.province">
	<br>
	<input type="submit" value="Submit"/>
	</form>
	<br>
	<br>
	<a href="springmvc/testServletAPI">Test ServletAPI</a>
	<br>
	<br>
	<a href="springmvc/testModerAndView">Test ModerAndView</a>
	<br>
	<br>
	<a href="springmvc/testMap">Test Map</a>
	<br>
	<br>
	<a href="springmvc/testSessionAttributes">Test SessionAttributes</a>
	<!-- 模拟修改操作
	1.原始数据：1，tom,123456,tom@atguigu.com,12 
	2.密码不能被修改
	3.表单回显，模拟操作直接在表单填写对应的属性值-->
	<form action="springmvc/testModelAttribute" method="post">
	<input type="hidden" name="id" value="1"/>
	username: <input type="text" name="username" value="tom"/>
	<br>
	email: <input type="text" name="email" value="tom@atguigu.com"/>
	<br>
	age: <input type="text" name="age" value="12"/>
	<br>
	<input type="submit" value="Submit"/>
	</form>
</body>
</html>